<div class="hbox hbox-auto-xs hbox-auto-sm" ng-init="
    app.settings.asideFolded = false; 
    app.settings.asideDock = false;
  ">
	<!-- main -->
	<div class="container">

		<div class="userRights-hred">
			<div class="row">
				<div class="col-sm-12 col-xs-12" style="padding: 0px;">
					<p style="padding: 20px; font-size: 18px; border-bottom: 1px solid #8B8E99;margin-bottom: 0px;">权限管理</p>
				</div>
			</div>
			<div class="so" style="padding: 20px;">
				<form class="form-inline" role="form">
					  <div class="form-group">
					    	<label for="inputsojsmc3" class="control-label">角色名称：</label>
					      <input type="text" class="form-control" id="inputsojsmc3" ng-model="queryParam.name">
					  </div>
					  <div class="form-group" style="margin-left: 10px;">
					   		<label for="inputsojsmc3" class="control-label">角色编号：</label>
					      <input type="text" class="form-control" id="inputsojsmc3" ng-model="queryParam.code">
					  </div>
					   <div class="form-group" style="margin-left: 20px;">
					      <button type="button" class="btn btn-primary" ng-click="query()">搜索</button>
					  </div>
				</form>
			</div>
		</div>
		<div class="userRights-body">
			<div class="getrights">
				<table class="table table-hover">
					<tr>
						<td colspan="5">
							<button type="button" class="btn btn-default" data-toggle="modal" data-target="#rightsModal"
								ng-click="setAddRights()">
								添加权限
							</button>
						</td>
					</tr>
					<tr>
						<th>权限ID标识</th>
						<th>权限名称</th>
						<th>权限编号</th>
						<th>权限描述</th>
						<th>操作</th>
					</tr>
					<tr ng-repeat="rights in rightsList">
						<td>{{rights.id}}</td>
						<td>{{rights.name}}</td>
						<td>{{rights.code}}</td>
						<td>{{rights.desc}}</td>
						<td>
							<button type="button" class="btn btn-success" data-toggle="modal" data-target="#rightsModal"
								ng-click="edit(rights.id)">
								编辑
							</button>
			 			<button type="button" class="btn btn-danger"
			 				ng-click="remove(rights.id)">
			 				删除
			 			</button>
						</td>
					</tr>
					<tr>
			 		<td colspan="5">
			 			<my_page></my_page>
			 		</td>
			 	</tr>
				</table>
			</div>
		</div>
	</div>
	
	<!--
    	作者：1307455725@qq.com
    	时间：2016-10-24
    	描述：rights模态框
    -->
    
    <div class="modal fade" id="rightsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
	  <div class="modal-dialog" role="document">
	    <div class="modal-content">
	      <div class="modal-header">
	        <h4 class="modal-title" id="myModalLabel" ng-show="addRights">添加权限</h4>
	        <h4 class="modal-title" id="myModalLabel" ng-show="editRights">编辑权限</h4>
	      </div>
	      <div class="modal-body">
	      		<form class="form-horizontal" ng-submit="submit()" role="form" name="form">
				  <input type="hidden" ng-model="formData.id" >
				  <div class="form-group">
				    <label for="inputjsMc" class="col-sm-3 control-label">权限名称：</label>
				    <div class="col-sm-4">
				      	<input type="text" class="form-control" id="inpujsMC33" ng-model="formData.name">
				   </div>
				  </div>
				   <div class="form-group" style="margin-top: 10px;">
					    <label for="inputjsbh3" class="col-sm-3 control-label">权限编号：</label>
					    <div class="col-sm-4">
					      <input type="text" class="form-control" id="inpujsbh3" ng-model="formData.code">
					    </div>
				  </div>
				  <div class="form-group">
					    <label class="col-sm-3 control-label">权限描述：</label>
					    <div class="col-sm-6">
					      <textarea class="form-control" rows="3" ng-model="formData.desc"></textarea>
					    </div>
				  </div>
				  <div class="form-group">
					    <label class="col-sm-3 control-label"></label>
					    <div class="col-sm-6">
					    	
					        <button type="submit" class="btn btn-primary">保存</button>
									      	
					    </div>
				  </div>
				</form>
	      </div>
	      <div class="modal-footer">
	      	
	        <button type="button" class="btn btn-danger" data-dismiss="modal" ng-click="close()">关闭</button>
	       
	      </div>
	    </div>
	  </div>
    
</div>